.class Lcom/instagram/creation/video/f/ao;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "VideoImportFragment.java"


# instance fields
.field final synthetic a:Lcom/instagram/creation/video/f/ae;


# direct methods
.method private constructor <init>(Lcom/instagram/creation/video/f/ae;)V
    .locals 0
    .parameter

    .prologue
    .line 731
    iput-object p1, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/creation/video/f/ae;Lcom/instagram/creation/video/f/af;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 731
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/ao;-><init>(Lcom/instagram/creation/video/f/ae;)V

    return-void
.end method


# virtual methods
.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 735
    const/4 v0, 0x1

    return v0
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 8
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    const/4 v7, 0x1

    .line 740
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/TrimHandleImageView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getWidth()I

    move-result v0

    int-to-float v0, v0

    sub-float/2addr v0, p3

    float-to-double v4, v0

    .line 741
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->o(Lcom/instagram/creation/video/f/ae;)D

    move-result-wide v0

    .line 742
    iget-object v2, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v2}, Lcom/instagram/creation/video/f/ae;->m(Lcom/instagram/creation/video/f/ae;)D

    move-result-wide v2

    .line 745
    cmpl-double v6, v4, v0

    if-lez v6, :cond_0

    .line 754
    :goto_0
    iget-object v2, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v2}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/TrimHandleImageView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    double-to-int v0, v0

    iput v0, v2, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 755
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v1}, Lcom/instagram/creation/video/f/ae;->d(Lcom/instagram/creation/video/f/ae;)D

    move-result-wide v1

    double-to-int v1, v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->d(I)Lcom/instagram/pendingmedia/model/a;

    .line 756
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->b(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/d/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->d()V

    .line 758
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->p(Lcom/instagram/creation/video/f/ae;)V

    .line 760
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0, v7}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/ae;Z)Z

    .line 761
    return v7

    .line 747
    :cond_0
    cmpg-double v0, v4, v2

    if-gez v0, :cond_1

    .line 749
    iget-object v0, p0, Lcom/instagram/creation/video/f/ao;->a:Lcom/instagram/creation/video/f/ae;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/ae;->ab()V

    move-wide v0, v2

    goto :goto_0

    :cond_1
    move-wide v0, v4

    .line 751
    goto :goto_0
.end method
